<template>
	<view class="wrapper bfff">
		<image src="/static/denglu1.png" mode="aspectFill" class="bg_img1" />
		<!-- <image src="../../images/newImg/back.png" style="top:calc({{safeTop}}px + 5rpx)" mode="aspectFill"
			class="tab_icon" bind:tap="back" /> -->
		<div class="tab_icon" @click="back(1)">
			<u-icon name="arrow-left" color="#fff" size="28"></u-icon>
		</div>
		<view class="box1 center posr">
			<image src="../../static/logo.jpg" mode="aspectFill" class="logo_icon" />
		</view>

		<view class="f34 center cfff mb50 posr"><text class="fbold">{{detail.gsmc}}</text>
		</view>
		<view class="center box posr">
			<view class="f28 label mr40">客服邮箱</view>
			<view class="flex1 c666">{{detail.email}}</view>
		</view>
		<view class="center box posr">
			<view class="f28 label mr40">客服电话</view>
			<view class="flex1 c666">{{detail.kfdh}}</view>
		</view>
		<view class="center box posr">
			<view class="f28 label mr40">⼯作时间</view>
			<view class="flex1 c666">{{detail.kfsj}}</view>
		</view>
		<view class="center box posr">
			<view class="f28 label mr40">公司地址</view>
			<view class="flex1 c666">{{detail.address || '--'}}</view>
		</view>
	</view>
</template>

<script setup>
	import {
		onLoad
	} from '@dcloudio/uni-app'
	import {
		ref
	} from 'vue'
	import {
		getCurrentInstance
	} from 'vue'
	const {
		proxy
	} = getCurrentInstance()
	
	const detail = ref({})
	// 获取关于我们的接口
	const getabout = () =>{
		proxy.$http('/api/about').then((r)=>{
			console.log(r)
			detail.value = r.data
		})
	}
	onLoad(()=>{
		getabout()
	})
	
</script>

<style lang="scss">
	/* pages/about/index.wxss */
	.bg_img1 {
		width: 100%;
		height: 740rpx;
	}

	.tab_icon {
		width: 58rpx;
		height: 48rpx;
		position: fixed;
		left: 13rpx;
		top: 44px;
	}

	.box1 {
		margin: -580rpx 0 18rpx;
	}

	.logo_icon {
		width: 237rpx;
		height: 237rpx;
		border-radius: 50%;
		border: 1rpx solid #F6EBEB;
	}

	page {
		background-color: #fff;
	}

	.content {
		margin: 40rpx 30rpx;
		line-height: 42rpx;
	}

	.bottom_text {
		bottom: 47rpx;
		left: 0;
		width: 100%;
		text-align: center;
	}

	.box {
		border-bottom: 1rpx solid #e2e2e2;
		padding: 30rpx;
		background-color: #fff;
	}
</style>